<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Button Group</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link type="text/css" href="../../jqueryui/themes/redmond/ui.all.css" rel="stylesheet" />
	<link type="text/css" href="../../themes/base/ui.base.css" rel="stylesheet" />
	<link type="text/css" href="../demo.css" rel="stylesheet" />
	<script type="text/javascript" src="../../jqueryui/jquery-1.3.2.js"></script>
	<script type="text/javascript" src="../../jqueryui/ui/jquery-ui.js"></script>
	<script type="text/javascript" src="../../ui/ui.button.js"></script>
	<script type="text/javascript" src="../../ui/ui.buttongroup.js"></script>
	<script type="text/javascript">
		$(function() {
			$("#group").buttongroup({
				buttons: {
					"Destroy": function() {
						$("#group").buttongroup("destroy");
					},
					"Add": function() {
						$("#group").buttongroup("add", "New Button", function() {
							$(this).button("destroy");
						});
					}
				}
			});
		});
	</script>
  </head>
  <body>
	<div id="group"></div>
  </body>
</html>
